package com.it.service.impl;

import com.it.mapper.CompanyMapper;
import com.it.pojo.Company;
import com.it.pojo.CompanyExample;
import com.it.service.CompanyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @author: zgc
 * @version: 1.0
 * @description:
 * @date: 2023/12/21 16:16
 */
@Service
@Transactional
public class CompanyServiceImpl implements CompanyService {
    @Autowired
    private CompanyMapper companyMapper;
    @Override
    public List<Company> findAll() {
        CompanyExample example = new CompanyExample();
        List<Company> list = companyMapper.selectByExample(example);
        return list;
    }
}
